export default {
    data() {
        return {
            list: []
        }
    },
    onShow() {
        this.getOpenId();
    },
    methods: {
        imCallback(e) {
            console.log("跳转IM客服成功", e.detail);
        },
        onimError(e) {
            console.log("拉起IM客服失败", e.detail);
        },
        getOpenId: function () {
            let openId = uni.getStorageSync("openid") || ''
            console.log(openId)
            this.openId = openId
            if (openId) {
                this.gettiktoklists(openId);
            }
        },
        gettiktoklists: function (openid) {
            this.$get('order.orderCode/tiktoklists',
                {
                    openid: openid,
                    page_size: 1000
                }
            ).then(res => {
                if (res.code == 1) {
                    this.list = res.data.lists || []
                } else {
                    this.uniToast(res.msg)
                }
            }).finally(() => {
            })
        }
    }
}